<p id="notice"><%= notice %></p>

<p>
  <b>Name:</b>
  <%= @project.name %>
</p>

<p>
  <b>Image:</b><br />
  <% if @project.avatar.exists? %>
    <%= image_tag @project.avatar.url(:medium) %>
  <% end %>
</p>

<p>
  <b>Person:</b>
  <%= @project.person.nil? ? "" : @project.person.name %>
</p>

<p>
  <b>Description:</b>
  <%= @project.description %>
</p>
<p>
	<b>Projects containing similar content:</b> 
	<% @similar_projects = SearchProjects(@project.name)%>
	<%= @similar_projects.map {|@sproject| (@sproject.name + " | " )}%> 
</p>

<%= link_to 'Edit', edit_project_path(@project) %> |
<%= link_to 'Back', projects_path %>
